package com.hskn.hss.module.operatedauthor.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.button.entity.SysButton;
import com.hskn.hss.module.menu.entity.SysMenu;
import com.hskn.hss.module.operatedauthor.entity.SysRoleMenu;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-04
 */
public interface ISysRoleMenuService extends IService<SysRoleMenu> {
    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult deleteByid(JSONObject params) throws HssException;

    void deleteByMap(String roleid) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    SysRoleMenu getInfoById(JSONObject params) throws HssException;

    List<SysRoleMenu> getListByMap(JSONObject params) throws HssException;

    List<SysMenu> getMenuListByRoleIds(List<String> roleIds);

    List<SysButton> getButtonByRoleIds(List<String> roleIds);

    List<SysRoleMenu> selectList(Wrapper<SysRoleMenu> wrapper);
}
